﻿<visi:VisiPage x:Class="VNet.VisiSuite.VisiAdmin.Views.PlantView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:visi="clr-namespace:VNet.VisiSuite.VisiAdmin.Controls"
        xmlns:vm="clr-namespace:VNet.VisiSuite.VisiAdmin.ViewModels" xmlns:c="clr-namespace:VNet.VisiSuite.VisiAdmin.Controls"
        xmlns:vuc="clr-namespace:VNet.VisiSuite.Controls;assembly=VNet.VisiSuite.Controls" xmlns:converter="clr-namespace:VNet.VisiSuite.VisiAdmin.Common.Converters"
        xmlns:helper="clr-namespace:VNet.VisiSuite.VisiAdmin.Common.Helpers" xmlns:dg="http://infragistics.com/DataPresenter" xmlns:igDock="http://infragistics.com/DockManager"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        xmlns:system="clr-namespace:System;assembly=mscorlib"
        DataContext="{DynamicResource PlantViewModel}" mc:Ignorable="d" d:DesignHeight="431.474" d:DesignWidth="894.322">
    <visi:VisiPage.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
        <converter:InvertBooleanConverter x:Key="InvertBooleanConverter" />
        <converter:ObjectNullVisibilityConverter x:Key="ObjectNullVisibilityConverter" />
        <converter:InvertBooleanVisibilityConverter x:Key="InvertBooleanVisibilityConverter" />
        <vm:PlantViewModel x:Key="PlantViewModel" />

    </visi:VisiPage.Resources>
    <vuc:BusyIndicator IsBusy="{Binding IsBusy}">
        <Grid Focusable="False" Background="{StaticResource WhiteColor}">
            <igDock:XamDockManager PaneDragStarting="PaneDragStarting">
                <igDock:ContentPane Style="{StaticResource NoHeaderPane}">
                    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="42" />
                        </Grid.RowDefinitions>

                        <!--Header-->
                        <c:Header2Control Grid.Row="0" Title="{Binding PageTitle}" LeftMenuIcons="{Binding TopLeftButtonIcons}" RightMenuIcons="{Binding TopRightButtonIcons}" />

                        <!--Body-->
                        <Grid Grid.Row="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>

                            <TextBlock Style="{StaticResource CaptionTextBlockStyle}" Grid.Row="0" Text="Select an item from the list below to edit it. Right click to see a menu of options." />
                            <TextBlock Style="{StaticResource ErrorTextBlockStyle}" Grid.Row="1" Text="{Binding ErrorMessage}"
                                    Visibility="{Binding ErrorMessage,Converter={StaticResource ObjectNullVisibilityConverter},ConverterParameter=Collapsed}" />

                            <Grid Grid.Row="2">
                                <dg:XamDataPresenter x:Name="dataGrid" DataSource="{Binding Plants}" ActiveDataItem="{Binding SelectedObject}" Style="{StaticResource XamDataPresenterStyle}">
                                    <dg:XamDataPresenter.FieldSettings>
                                        <dg:FieldSettings ExpandableFieldRecordExpansionMode="ExpandAlways" ExpandableFieldRecordHeaderDisplayMode="Default" AllowEdit="False"
                                                AllowRecordFiltering="True" LabelClickAction="SortByOneFieldOnly" />
                                    </dg:XamDataPresenter.FieldSettings>
                                    <dg:XamDataPresenter.FieldLayoutSettings>
                                        <dg:FieldLayoutSettings HeaderPrefixAreaDisplayMode="FieldChooserButton" AutoGenerateFields="False" />
                                    </dg:XamDataPresenter.FieldLayoutSettings>
                                    <dg:XamDataPresenter.FieldLayouts>
                                        <dg:FieldLayout Key="Plants">
                                            <dg:FieldLayout.FieldSettings>
                                                <dg:FieldSettings ExpandableFieldRecordExpansionMode="ExpandAlways" />
                                            </dg:FieldLayout.FieldSettings>
                                            <dg:Field Name="PlantName" Label="Plant Name" Width="*" />
                                            <dg:Field Name="Description" Label="Description" Width="*" />
                                            <dg:Field Name="Enabled" Label="Enabled" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedBy" Label="Created By" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedDate" Label="Created Date" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedBy" Label="Last Updated By" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedDate" Label="Last Updated Date" />
                                            <dg:Field Name="Areas" />
                                        </dg:FieldLayout>

                                        <dg:FieldLayout Key="Areas">
                                            <dg:Field Name="AreaName" Label="Area Name" Width="*" />
                                            <dg:Field Name="Description" Label="Description" Width="*" />
                                            <dg:Field Name="Enabled" Label="Enabled" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedBy" Label="Created By" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedDate" Label="Created Date" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedBy" Label="Last Updated By" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedDate" Label="Last Updated Date" />
                                            <dg:Field Name="Cells" />
                                        </dg:FieldLayout>

                                        <dg:FieldLayout Key="Cells">
                                            <dg:Field Name="CellName" Label="Cell Name" Width="*" />
                                            <dg:Field Name="Description" Label="Description" Width="*" />
                                            <dg:Field Name="Enabled" Label="Enabled" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedBy" Label="Created By" />
                                            <dg:Field Visibility="Collapsed" Name="CreatedDate" Label="Created Date" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedBy" Label="Last Updated By" />
                                            <dg:Field Visibility="Collapsed" Name="LastUpdatedDate" Label="Last Updated Date" />
                                        </dg:FieldLayout>
                                    </dg:XamDataPresenter.FieldLayouts>
                                </dg:XamDataPresenter>
                            </Grid>
                        </Grid>
                        <!--Footer-->
                        <ContentControl Grid.Row="2" Template="{StaticResource FooterTemplate}" />
                    </Grid>
                </igDock:ContentPane>

                <igDock:XamDockManager.Panes>
                    <igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedRight" Width="350" SplitterOrientation="Horizontal">
                        <igDock:ContentPane Header="{Binding ContentPaneHeader}" Style="{StaticResource RightPaneStyle}">
                            <Grid>
                                <!--Plant properties-->
                                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Visibility="{Binding CloneSelectedPlant, Converter={StaticResource ObjectNullVisibilityConverter}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>

                                    <ig:XamPropertyGrid Grid.Row="1"  SelectedObject="{Binding CloneSelectedPlant}" ScrollBarVisibility="Auto" FilterAreaVisibility="Collapsed" >
                                        <ig:XamPropertyGrid.ItemFilters>
                                            <ig:PropertyGridConditionGroup LogicalOperator="Or" >
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="Properties" ></ig:PropertyGridComparisonCondition>
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="Update History" ></ig:PropertyGridComparisonCondition>
                                            </ig:PropertyGridConditionGroup>
                                        </ig:XamPropertyGrid.ItemFilters>
                                        <ig:XamPropertyGrid.EditorDefinitions>
                                            <ig:PropertyGridEditorDefinition Category="Update History">
                                                <ig:PropertyGridEditorDefinition.EditTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Text ="{Binding Value}" Style="{StaticResource PropertyDataTextBlockStyle}"/>
                                                    </DataTemplate>
                                                </ig:PropertyGridEditorDefinition.EditTemplate>
                                            </ig:PropertyGridEditorDefinition>
                                        </ig:XamPropertyGrid.EditorDefinitions>
                                    </ig:XamPropertyGrid>

                                    <!--                                    <TextBlock Grid.Row="01" Style="{StaticResource PropertyTextBlockStyle}" Text="Plant Name" />-->
                                    <!--                                    <TextBlock Grid.Row="03" Style="{StaticResource PropertyTextBlockStyle}" Text="Description" />-->
                                    <!--                                    <TextBlock Grid.Row="05" Style="{StaticResource PropertyTextBlockStyle}" Text="Date Format"/>-->
                                    <!---->
<!--                                    <TextBox Grid.Row="2" Style="{StaticResource PropertyTextBoxStyle}" MaxLength="40" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs1}"-->
                                    <!--                                            Text="{Binding CloneSelectedPlant.PlantName, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors= True, NotifyOnValidationError=True}" />-->
                                    <!--                                    <TextBox Grid.Row="4" Style="{StaticResource PropertyTextBoxStyle}" MaxLength="40" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs1}"-->
                                    <!--                                            Text="{Binding CloneSelectedPlant.Description, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors= True, NotifyOnValidationError=True}" />-->
                                    <!--                                    <TextBox Grid.Row="6" Style="{StaticResource PropertyTextBoxStyle}" MaxLength="40" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs1}"-->
                                    <!--                                            Text="{Binding CloneSelectedPlant.DateFormat, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors= True, NotifyOnValidationError=True}" />-->
                                    <!--                                    -->
                                    <!--                                    <CheckBox Grid.Row="7" Style="{StaticResource PropertyCheckBoxStyle}" IsChecked="{Binding CloneSelectedPlant.Enabled}" Height="Auto" Content="Enabled" />-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="8" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Created By:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedPlant.CreatedBy}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="9" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Created Date:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedPlant.CreatedDate}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="10" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Last Updated By:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedPlant.LastUpdatedBy}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="11" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Last Updated Date:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedPlant.LastUpdatedDate}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->

                                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Save" Command="{Binding SavePlantCommand}" IsEnabled="{Binding CloneSelectedPlant.IsSaveEnabled}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Cancel" Command="{Binding CancelPlantCommand}"
                                                IsEnabled="{Binding CloneSelectedPlant.IsCancelEnable}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Delete" Command="{Binding DeletePlantCommand}"
                                                Visibility="{Binding CloneSelectedPlant.IsDeleted,Converter={StaticResource InvertBooleanVisibilityConverter},ConverterParameter=Collapsed }" />
                                    </StackPanel>

                                    <StackPanel Grid.Row="3">
                                        <vuc:ValidationSummary x:Name="vs1" />
                                        <TextBlock Text="{Binding CloneSelectedPlant.ErrorMessage}" Style="{StaticResource ErrorTextBlockStyle}" />
                                    </StackPanel>
                                </Grid>

                                <!--Area properties-->
                                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Visibility="{Binding CloneSelectedArea, Converter={StaticResource ObjectNullVisibilityConverter}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <ig:XamPropertyGrid Grid.Row="1"  SelectedObject="{Binding CloneSelectedArea}" ScrollBarVisibility="Auto" FilterAreaVisibility="Collapsed" >
                                        <ig:XamPropertyGrid.ItemFilters>
                                            <ig:PropertyGridConditionGroup LogicalOperator="Or" >
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="Properties" ></ig:PropertyGridComparisonCondition>
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="Update History" ></ig:PropertyGridComparisonCondition>
                                            </ig:PropertyGridConditionGroup>
                                        </ig:XamPropertyGrid.ItemFilters>
                                        <ig:XamPropertyGrid.EditorDefinitions>
                                            <ig:PropertyGridEditorDefinition Category="Update History">
                                                <ig:PropertyGridEditorDefinition.EditTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Text ="{Binding Value}" Style="{StaticResource PropertyDataTextBlockStyle}"/>
                                                    </DataTemplate>
                                                </ig:PropertyGridEditorDefinition.EditTemplate>
                                            </ig:PropertyGridEditorDefinition>
                                        </ig:XamPropertyGrid.EditorDefinitions>
                                    </ig:XamPropertyGrid>

                                    <!--                                    <TextBlock Grid.Row="01" Style="{StaticResource PropertyTextBlockStyle}" Text="Area Name" />-->
                                    <!--                                    <TextBlock Grid.Row="03" Style="{StaticResource PropertyTextBlockStyle}" Text="Description" />-->
                                    <!---->
<!--                                    <TextBox Grid.Row="2" Style="{StaticResource PropertyTextBoxStyle}" MaxLength="40" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs2}"-->
                                    <!--                                            Text="{Binding CloneSelectedArea.AreaName, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors= True, NotifyOnValidationError=True}" />-->
                                    <!--                                    <TextBox Grid.Row="4" Style="{StaticResource PropertyTextBoxStyle}" MaxLength="40" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs2}"-->
                                    <!--                                            Text="{Binding CloneSelectedArea.Description, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors= True, NotifyOnValidationError=True}" />-->
                                    <!--                                    <CheckBox Grid.Row="5" Style="{StaticResource PropertyCheckBoxStyle}" IsChecked="{Binding CloneSelectedArea.Enabled}" Height="Auto" Content="Enabled" />-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="6" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Created By:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedArea.CreatedBy}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="7" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Created Date:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedArea.CreatedDate}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="8" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Last Updated By:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedArea.LastUpdatedBy}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->
                                    <!---->
<!--                                    <StackPanel Grid.Row="9" Orientation="Horizontal">-->
                                    <!--                                        <TextBlock Text="Last Updated Date:" Style="{StaticResource PropertyTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                        <TextBlock Text="{Binding CloneSelectedArea.LastUpdatedDate}" Style="{StaticResource PropertyDataTextBlockStyle}" VerticalAlignment="Center" />-->
                                    <!--                                    </StackPanel>-->

                                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Save" Command="{Binding SaveAreaCommand}" IsEnabled="{Binding CloneSelectedArea.IsSaveEnabled}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Cancel" Command="{Binding CancelAreaCommand}"
                                                IsEnabled="{Binding CloneSelectedArea.IsCancelEnable}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Delete" Command="{Binding DeleteAreaCommand}"
                                                Visibility="{Binding CloneSelectedArea.IsDeleted,Converter={StaticResource InvertBooleanVisibilityConverter},ConverterParameter=Collapsed }" />
                                    </StackPanel>

                                    <StackPanel Grid.Row="3">
                                        <vuc:ValidationSummary x:Name="vs2" />
                                        <TextBlock Text="{Binding CloneSelectedArea.ErrorMessage}" Style="{StaticResource ErrorTextBlockStyle}" />
                                    </StackPanel>
                                </Grid>

                                <!--Cell properties-->
                                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Visibility="{Binding CloneSelectedCell, Converter={StaticResource ObjectNullVisibilityConverter}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>

                                    <ig:XamPropertyGrid Grid.Row="1"  SelectedObject="{Binding CloneSelectedCell}" ScrollBarVisibility="Auto" FilterAreaVisibility="Collapsed" >
                                        <ig:XamPropertyGrid.ItemFilters>
                                            <ig:PropertyGridConditionGroup LogicalOperator="Or" >
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="1. Properties" ></ig:PropertyGridComparisonCondition>
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="2. VisiCentral" ></ig:PropertyGridComparisonCondition>
                                                <ig:PropertyGridComparisonCondition  Operator="Equals"  OperandSource="CategoryName" Value="3. Update History" ></ig:PropertyGridComparisonCondition>
                                            </ig:PropertyGridConditionGroup>
                                        </ig:XamPropertyGrid.ItemFilters>
                                        <ig:XamPropertyGrid.EditorDefinitions>
                                            <ig:PropertyGridEditorDefinition Category="Update History">
                                                <ig:PropertyGridEditorDefinition.EditTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Text ="{Binding Value}" Style="{StaticResource PropertyDataTextBlockStyle}"/>
                                                    </DataTemplate>
                                                </ig:PropertyGridEditorDefinition.EditTemplate>
                                            </ig:PropertyGridEditorDefinition>

                                            <ig:PropertyGridEditorDefinition Category="Properties">
                                                <ig:PropertyGridEditorDefinition.TargetProperties>
                                                    <system:String>Password</system:String>
                                                </ig:PropertyGridEditorDefinition.TargetProperties>
                                                <ig:PropertyGridEditorDefinition.EditTemplate>
                                                    <DataTemplate>
                                                        <PasswordBox Style="{StaticResource PropertyPasswordBoxStyle}" MaxLength="32" vuc:ValidationSummaryValidator.AdornerSite="{Binding ElementName=vs3}"
                                            helper:PasswordHelper.BindPassword="true" helper:PasswordHelper.BoundPassword="{Binding Value, Mode=TwoWay}" />
                                                    </DataTemplate>
                                                </ig:PropertyGridEditorDefinition.EditTemplate>
                                            </ig:PropertyGridEditorDefinition>

                                        </ig:XamPropertyGrid.EditorDefinitions>
                                    </ig:XamPropertyGrid>


                                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Save" Command="{Binding SaveCellCommand}" IsEnabled="{Binding CloneSelectedCell.IsSaveEnabled}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Cancel" Command="{Binding CancelCellCommand}"
                                                IsEnabled="{Binding CloneSelectedCell.IsCancelEnable}" />
                                        <Button Style="{StaticResource PropertyButtonStyle}" Content="Delete" Command="{Binding DeleteCellCommand}"
                                                Visibility="{Binding CloneSelectedCell.IsDeleted,Converter={StaticResource InvertBooleanVisibilityConverter},ConverterParameter=Collapsed }" />
                                    </StackPanel>

                                    <StackPanel Grid.Row="3">
                                        <vuc:ValidationSummary x:Name="vs3" />
                                        <TextBlock Text="{Binding CloneSelectedCell.ErrorMessage}" Style="{StaticResource ErrorTextBlockStyle}" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </igDock:ContentPane>
                    </igDock:SplitPane>
                </igDock:XamDockManager.Panes>
            </igDock:XamDockManager>
        </Grid>
    </vuc:BusyIndicator>
</visi:VisiPage>
